package initialize

import (
	"gitcode.com/G-YT/baoyou/server/global"
	"gitcode.com/G-YT/baoyou/server/model/cms"
	mgrModel "gitcode.com/G-YT/baoyou/server/model/manager"
)

func bizModel() error {
	db := global.GVA_DB
	err := db.AutoMigrate(
		cms.Tag{}, cms.Category{}, cms.Article{},
		mgrModel.MessageNotice{},
	)
	if err != nil {
		return err
	}
	return nil
}
